package com.flejay.dreamrecruiter.dao.impl;

import javax.inject.Named;
import javax.inject.Singleton;

import com.flejay.dreamrecruiter.dao.IXmlConverter;
import com.flejay.dreamrecruiter.model.CurriculumVitae;
import com.flejay.dreamrecruiter.tools.converter.XmlBlocksTool;
import com.flejay.dreamrecruiter.xsd.CV;

@Singleton
@Named("xmlConverterDao")
public class XmlConverterDao implements IXmlConverter{

	@Override
	public CV convertCVIntoXML(final CurriculumVitae cv){
		return XmlBlocksTool.convertCVIntoXml(cv.getBlockList());
	}
}
